package cn.gcyl.module.biz.service.conferenceregistrationinformation;

import java.util.*;
import java.util.stream.Collectors;
import javax.validation.*;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import cn.gcyl.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.gcyl.module.biz.controller.admin.conferenceregistrationinformation.vo.*;
import cn.gcyl.module.biz.dal.dataobject.SysPayOrderDO;
import cn.gcyl.module.biz.dal.dataobject.conferenceregistrationinformation.ConferenceRegistrationInformationDO;
import cn.gcyl.framework.common.pojo.PageResult;
import cn.gcyl.framework.common.pojo.PageParam;
import cn.gcyl.module.biz.dal.dataobject.conferenceregistrationinformation.ConferenceUserRegistrationInformationPO;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * 会议报名信息 Service 接口
 *
 * @author 芋道源码
 */
public interface ConferenceRegistrationInformationService {

    /**
     * 创建会议报名信息
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createConferenceRegistrationInformation(@Valid ConferenceRegistrationInformationSaveReqVO createReqVO);

    /**
     * 更新会议报名信息
     *
     * @param updateReqVO 更新信息
     */
    void updateConferenceRegistrationInformation(@Valid ConferenceRegistrationInformationSaveReqVO updateReqVO);

    /**
     * 删除会议报名信息
     *
     * @param id 编号
     */
    void deleteConferenceRegistrationInformation(Long id);

    /**
    * 批量删除会议报名信息
    *
    * @param ids 编号
    */
    void deleteConferenceRegistrationInformationListByIds(List<Long> ids);

    /**
     * 获得会议报名信息
     *
     * @param id 编号
     * @return 会议报名信息
     */
    ConferenceRegistrationInformationDO getConferenceRegistrationInformation(Long id);

    /**
     * 获得会议报名信息分页
     *
     * @param pageReqVO 分页查询
     * @return 会议报名信息分页
     */
    PageResult<ConferenceRegistrationInformationDO> getConferenceRegistrationInformationPage(ConferenceRegistrationInformationPageReqVO pageReqVO);



    /**
     * 【管理员】获得会员用户分页
     *
     * @param pageReqVO 分页查询
     * @return 会员用户分页
     */
    PageResult<ConferenceUserRegistrationInformationPO> getMeetingListPage(ConferenceMeetingInformationPageReqVO pageReqVO);


    /**
     * 【管理员】获取平台报名详情
     *
     * @param
     * @return
     */
    ConferenceUserRegistrationInformationPO getMeetingInfo(Long id);

    void createConferenceRegistrationInformationDO(ConferenceRegistrationInformationDO registrationInformationDO);

    Boolean getConferenceRegistrationInformationByOrderNo(@NotEmpty(message = "商户订单号不能为空") String merchantOrderId, SysPayOrderDO sysPayOrderDO);

    ConferenceRegistrationInformationDO getMeetingInfoByUserId(Long meetingId, Long loginUserId);
}